Skip to main content

AssignIpv6Addresses

Description

call AssignIpv6Addresses to assign one or more IPv6 addresses to ENI.

Request Method

POST

Request Path

/apsara/route/Ecs/AssignIpv6Addresses

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
Ipv6AddressCountBODYintegerNo1specifies the number of randomly generated IPv6 addresses for flexible network cards. description you cannot specify both the parameters Ipv6Addresses. n and Ipv6AddressCount.
RegionIdBODYstringYescn-qingdao-env17-d01ID of the region where the ENI is located. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
NetworkInterfaceIdBODYstringYeseni-bp14v2sdd3v8ht******ENI ID.
Ipv6Address.NBODYrepeatlistNo2001:db8:1234:1a00::***specify one or more IPv6 addresses for flexible network cards. The value range of N only supports 1. example: Ipv6Address.1=2001:db8:1234:1 a00::XXX description you cannot specify both the parameters Ipv6Addresses. n and Ipv6AddressCount.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}